<template>
  <div class="container">
    <el-form ref="ruleForm" :model="ruleForm" status-icon :rules="rules" label-width="110px" class="demo-ruleForm">
      <el-form-item label="申请人" prop="pass">
        <el-input v-model="ruleForm.pass" type="password" autocomplete="off" />
      </el-form-item>
      <el-form-item label="联系人" prop="pass">
        <el-input v-model="ruleForm.pass" type="password" autocomplete="off" />
      </el-form-item>
      <el-form-item label="联系电话">
        <el-input v-model="ruleForm.age" type="textarea" />
      </el-form-item>
      <el-form-item label="空间位置">
        <el-input v-model="ruleForm.age" type="textarea" />
      </el-form-item>
      <el-form-item label="申报类型">
        <el-select v-model="formInline.region" placeholder="请选择事件来源">
          <el-option label="本人申报" value="shanghai" />
          <el-option label="物业申报" value="beijing" />
          <el-option label="物业代报" value="beijing" />
        </el-select>
      </el-form-item>
      <el-form-item label="事件性质">
        <el-select v-model="formInline.region" placeholder="请选择事件来源">
          <el-option label="维修工单" value="shanghai" />
          <el-option label="报事工单" value="beijing" />
        </el-select>
      </el-form-item>
      <el-form-item label="事件标题">
        <el-input v-model="ruleForm.age" type="textarea" />
      </el-form-item>
      <el-form-item label="时间描述">
        <el-input v-model="ruleForm.age" type="textarea" />
      </el-form-item>
      <el-form-item label="关联资产">
        <el-input v-model="ruleForm.age" type="textarea" />
      </el-form-item>
      <el-form-item label="紧急程度">
        <el-select v-model="formInline.region" placeholder="请选择事件来源">
          <el-option label="常规" value="shanghai" />
          <el-option label="一般" value="beijing" />
          <el-option label="重要" value="beijing" />
          <el-option label="紧急" value="beijing" />
        </el-select>
      </el-form-item>
      <el-form-item label="优先级">
        <el-select v-model="formInline.region" placeholder="请选择事件来源">
          <el-option label="一级" value="shanghai" />
          <el-option label="二级" value="beijing" />
          <el-option label="三级" value="beijing" />
          <el-option label="四级" value="beijing" />
        </el-select>
      </el-form-item>
      <el-form-item label="指派人">
        <el-input v-model="ruleForm.age" type="textarea" />
      </el-form-item>
      <el-form-item label="文件上传">
        <el-upload class="upload-demo" drag action="https://jsonplaceholder.typicode.com/posts/" multiple>
          <i class="el-icon-upload"></i>
          <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
        </el-upload>
      </el-form-item>
      <el-form-item>
        <el-button size="small">取 消</el-button>
        <el-button type="primary" size="small">确 定</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data () {
    return {
      ruleForm: {
        pass: '',
        checkPass: '',
        age: ''
      },
      formInline: {
        user: '',
        region: '',
        deptId: []
      },
      startTime: '',
      endTime: ''
    }
  },
  computed: {
    rules () {
      return {
        pass: [
          { required: true, message: '请输入活动名称', trigger: 'blur' }
        ],
        checkPass: [
          { required: true, message: '请输入活动名称', trigger: 'blur' }
        ],
        age: [
          { required: true, message: '请输入活动名称', trigger: 'blur' }
        ]
      }
    }

  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  height: 100%;
  padding: 17px;
  overflow: auto;
  .demo-ruleForm {
    width: 70%;
  }
}
.popup {
  ::v-deep .el-dialog {
    border-radius: 4px;
  }
  ::v-deep .el-dialog__header {
    border-bottom: 1px solid #cdd0db;
  }
  ::v-deep .el-dialog__body {
    padding: 30px;
  }
}
</style>
